package com.wkbb.basic.mapper;

import com.wkbb.basic.model.InviterLog;
import com.wkbb.basic.model.User;
//import com.wkbb.basic.vo.ValidVisitorDeviceUserVo;
import com.wkbb.basic.vo.WebankUserVo;
import com.wkbb.common.base.BaseMapper;
import com.wkbb.common.dto.basic.UserDto;
import com.wkbb.common.dto.basic.UserInfoDto;
//import com.wkbb.common.vo.DeviceUserVo;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface UserMapper extends BaseMapper<User> {

    void updateBack(User user);

    void updateStatus(User user);

    UserInfoDto getUserInfoByMobile(Map<String, Object> params);

   // List<DeviceUserVo> getUserByDeviceOrg(Map<String, Object> deviceCode);

    //List<ValidVisitorDeviceUserVo> getValidVisitorDeviceUserByDeviceOrg(Map<String, Object> deviceCode);

    User getNewUserByOld(Long oldUserId);

    List<UserDto> getUserMobileList(@Param(value = "ids") List<Long> ids);

    void deleteUserData(@Param(value = "orgId") Long orgId);

    List<WebankUserVo> getWebanUserVoByOrgId(Long orgId);

    List<WebankUserVo> getWebanUserVoByPersonId(Map<String, Object> params);

    User findByMobile(String mobile);

    int insertInviterLog(InviterLog inviterLog);

    List<UserDto> getAppletUserPageList(HashMap<String, Object> params);
}